package socrates.movil;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class RolExamenes extends TabActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.horatab);

		Resources r = getResources();
		TabHost th = getTabHost();

		for (int d = 0; d < 7; d++) {
			Intent i = new Intent(this, AsA2.class);
			i.putExtra("d", d);
			th.addTab(th.newTabSpec("U"+String.valueOf(d)).setIndicator(String.valueOf(d),
							r.getDrawable(android.R.drawable.ic_menu_slideshow)).
							setContent(i));
		}
		th.setCurrentTab(0);
	}
}
